tee: allow multiple -a flags#10293
Conversation
Fixes issue where tee rejected multiple append flags with error "the argument '--append' cannot be used multiple times". GNU tee accepts multiple -a flags, so this adds compatibility.
ChrisDryden
left a comment
There was a problem hiding this comment.
This would be a good test to upstream to the gnu test suite
|
I'm trying to brainstorm how to systemically test to see the variance with multiple flags for all of the options, given how simple the fix is, it would be good to make a script to go through every option and see what happens when multiple of a flag is provided or validate this is a niche use case. |
|
probably a variance of fuzz/fuzz_targets/fuzz_non_utf8_paths.rs |
Merging this PR will degrade performance by 27.39%
Performance Changes
Comparing Footnotes
|
Fixes issue where tee rejected multiple append flags with error "the argument '--append' cannot be used multiple times". GNU tee accepts multiple -a flags, so this adds compatibility.
fixes
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2134578